﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Foundation;
using Windows.UI;

namespace DecisionCircle.Platform
{
    public static class Constant
    {
        public static int IntMinimumEdges = 10;
        public static int IntMaximumEdges = 25;
        public static int IntRadiusDefault = 100;
        public static int IntMinimumLevel = 1;
        public static int IntMaximumLevel = 10;
        public static int IntCurrentRadius = 300;
        public static int IntMaxAngle = 20;
        public static double DRatioOfRealTime = 0.007d;
        public static double DRatioRadiusCircle = 3;
        public static double DRadiusCircle = 300;
        public static int IntCurrentNumOfPlayers = 2;
        public static ulong UlTimeSpanChangePoint = 15;

        public static Windows.Foundation.Point PointLeftTopDefault = new Point(0, 0);
        public static Windows.Foundation.Point PointWidthHeightParent = new Point(0, 0);
        public static Windows.Foundation.Point PointTarget = new Point(779, 0);

        public static List<Color> ListColor;

        public static double GetTargetRadian(Point pointCenter)
        {
            try
            {
                double x = pointCenter.X - PointTarget.X;
                double y = pointCenter.Y - PointTarget.Y;
                double alpha = Math.Acos(y / (Math.Sqrt(x * x + y * y)));

                return alpha;
            }
            catch { return 0; }
        }

      
       }
}
